package com.returnsoft.security.service;

import java.util.List;

import javax.ejb.Remote;

import com.returnsoft.security.dto.PersonDto;
import com.returnsoft.security.exception.SecurityExcepcion;


@Remote
public interface PersonInterface {
	
	public List<PersonDto> findPersons(List<Integer> departmentsId,
			List<Integer> subDepartmentsId, String documentNumber, String firstname, String lastname)
			throws SecurityExcepcion;
	
	public PersonDto add(PersonDto personDto) throws SecurityExcepcion;
	
	public PersonDto findById(Integer idPerson) throws SecurityExcepcion;
	
	public PersonDto findByDocumentNumber(String documentNumber) throws SecurityExcepcion;
	

}
